package com.mmd.admin.model.pojo.request.mer;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Size;
import java.util.HashSet;
import java.util.Set;

/**
 * @author xsj
 * @create 2023-05-30 9:40
 */
@Data
@ApiModel(value = "后台新增及更新角色权限参数")
public class MerRoleAndMenuAddOrEditParam {

    @ApiModelProperty(value = "主键")
    private Long roleId = 0L;

    @ApiModelProperty("相关权限")
    @Size(min = 1, message = "相关权限不能为空")
    private Set<Long> menuIds = new HashSet<>();
}
